package com.admin.model.vo;

import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.List;

/**
 * @author caixiaofeng
 * @version 1.0
 * @Description: <<部门树>>
 * @company 个人学习
 * @create 2021-04-06 16:49
 */
@ApiModel("部门树实体类")
@Data
@AllArgsConstructor
@NoArgsConstructor
@JsonInclude(JsonInclude.Include.NON_EMPTY)
public class DeptTreeVo {
    @ApiModelProperty("id")
    @JsonSerialize(using = ToStringSerializer.class)
    private Long id;
    @ApiModelProperty("部门名称")
    private String title;
    @ApiModelProperty("子部门")
    private List<DeptTreeVo> children;
}
